package net.jxiny.oschina.tweet.Adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import net.jxiny.oschina.R;
import net.jxiny.oschina.tweet.enyity.Hot;
import net.jxiny.oschina.tweet.enyity.Topic;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public class HotAdapter extends BaseQuickAdapter<Hot, BaseViewHolder>{
    public HotAdapter(int layoutResId, @Nullable List<Hot> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Hot item) {
        helper.setText(R.id.title2,item.getAuthor());
        helper.setText(R.id.hot_things,item.getBody());
        helper.setText(R.id.time2,item.getPubDate());
        helper.setText(R.id.author2,item.getAuthor());
        helper.setText(R.id.commentCount2,item.getCommentCount());
    }
}
